package com.itee.protocal;

/**
 * @author gonglei 处理请求结果状态
 */
public enum AckState {

    NONE("未选择测试类别"),

    NOCONNECTED("没有可用的连接"),

    DISCONNECTED("连接已断开"),

    SUCCESS("成功"),

    BUSY("集中器忙"),

    DENY("否认"),

    FAILURE("失败"),

    TIME_OUT("等待超时"),

    ERROR("内部错误"),

    REPORT_SLAVEINFO("上报从节点信息"),

    REPORT_SLAVEINFO_DEVICE("上报从节点信息及设备类型"),

    REPORT_ROUTING_STATUS("上报路由工况变动信息");


    private String name;

    private AckState(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString(){
        return this.name;
    }
}
